/*
 * 静态内部类
 * 
 * java加载机制：静态内部类只有在使用时才会加载，且是线程安全的
 */
public class Singleton_static_inner_class {
    private static class InnerSingleton {
        private static final Singleton_static_inner_class mInstance = new Singleton_static_inner_class();
    }

    public static Singleton_static_inner_class getInstance(){
        return InnerSingleton.mInstance;
    }
}
